const indexList = require('../app/common/indexList')
const proxys = require('../app/proxy/index')
let list = indexList.list

// 初始化指数信息
list.map((item) => {
  proxys.StockIndex.newAndSave({
    key: item.key,
    name: item.name,
    code: item.code,
    year_average: 1,
    flag: '正常'
  }).then((doc) => {
    console.log(doc)
  })
})
